MercadoPago\Woocommerce\Gateways\AbstractGateway A

Total Complexity 68
Dependencies 7
Dependents 18
Total lines 870
Lines of code 404
Logical lines of code 131
Comment lines 246
Methods 40
Properties 12

Methods 40

Method Rating Maintainability Complexity Lines of code
update_option()
S
55 5 20
processReturnFail()
S
52 4 24
addMissingCredentialsNoticeAsFormField()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
process_payment()
S
55 3 19
getHomologValidateNoticeOrHidden()
S
55 2 21
canAdminLoadScriptsAndStyles()
S
73 3 5
payment_scripts()
S
69 3 8
canCheckoutLoadScriptsAndStyles()
S
73 3 5
processBlocksCheckoutData()
S
63 3 10
getFeeTitle()
S
61 2 13
loadResearchComponent()
S
60 1 15
getDiscountField()
S
59 1 15
getActionableValue()
S
68 2 7
getAmount()
S
71 2 6
handleWithRejectPayment()
S
68 2 7
getCommissionField()
S
59 1 15
saveOrderPaymentsId()
S
65 2 9
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
registerCheckoutScripts()
S
62 1 14
__construct()
S
60 1 13
generate_mp_actionable_input_html()
S
61 1 13
generate_mp_support_link_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
generate_mp_credits_checkout_example_html()
S
65 1 10
getRejectedPaymentErrorMessage()
S
75 1 4
generate_mp_card_info_html()
S
65 1 10
getCheckoutName()
S
81 1 3
generate_mp_config_title_html()
S
65 1 10
generate_mp_checkbox_list_html()
S
69 1 8
generate_mp_toggle_switch_html()
S
64 1 10
getFeeText()
S
74 1 4
isAvailable()
S
81 1 3
webhook()
S
70 1 6
validate_fields()
S
82 1 3
payment_fields()
S
91 1 2
registerAdminScripts()
S
66 1 10
init_form_fields()
S
81 1 3
get_settings_url()
S
80 1 3